VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3120
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3120
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "close"
      Height          =   495
      Left            =   3000
      TabIndex        =   2
      Top             =   960
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Send"
      Height          =   735
      Left            =   600
      TabIndex        =   1
      Top             =   1320
      Width           =   1815
   End
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   200
      Left            =   240
      Top             =   2400
   End
   Begin VB.CommandButton connect 
      Caption         =   "connect"
      Height          =   615
      Left            =   600
      TabIndex        =   0
      Top             =   360
      Width           =   1695
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Dim tt As New TinyMsgToolLib.TinyMsgInterface

Private Sub Command1_Click()
Timer1.Enabled = False

Set tt = Nothing

End Sub

Private Sub Command2_Click()
tt.Clear

tt.setMsgIndex 1
tt.setMsgItem 16
tt.setDefaultParamByIndex 0, "helloworld"
tt.setDefaultParamByIndex 1, "TCPCLient"
tt.setDefaultParamByIndex 2, "127.0.0.1"
tt.send
End Sub

Private Sub connect_Click()

Dim ret As Boolean

ret = tt.connect("127.0.0.1", 3303)


Timer1.Enabled = True


End Sub

Private Sub Timer1_Timer()

If (tt.nextMsg) Then
MsgBox tt.getDefaultParamByIndex(0)

End If





End Sub
